home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Czytniki RSS / RSS Bandit 1.3.0.42 / RssBandit Installer.msi / _172FF5180BC61D3C6D240F14338A23AA / _86AAD0ACCBF64D57AA1B332F9E020A90 < prev    next >
Text File  |  2004-12-12  |  10KB  |  243 lines

  1.         <xsl:stylesheet version='1.0' 
  2.                 xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
  3.                 xmlns:content = 'http://purl.org/rss/1.0/modules/content/'
  4.                 xmlns:xhtml='http://www.w3.org/1999/xhtml'
  5.                 xmlns:slash='http://purl.org/rss/1.0/modules/slash/'
  6.                 xmlns:dc='http://purl.org/dc/elements/1.1/' 
  7.                 exclude-result-prefixes='content slash dc'>
  8.           
  9.           <xsl:output method='xml' indent='yes' /> 
  10.  
  11.           <!-- channel group newspaper -->
  12.           <xsl:template match="newspaper[@type='group']">
  13.             <html>
  14.               <head>
  15.             <title><xsl:value-of select='title'/></title>
  16.             <!-- <base href="{//channel/link}" /> -->
  17.             <style><![CDATA[
  18.             body    { 
  19.             scrollbar-face-color: #FFFFFF;
  20.             scrollbar-highlight-color: #0066CC;
  21.             scrollbar-3dlight-color: #0066CC;
  22.             scrollbar-darkshadow-color: #0066CC;
  23.             scrollbar-shadow-color: #0066CC;
  24.             scrollbar-arrow-color: #0066CC;
  25.             scrollbar-track-color: #0066CC;
  26.             background: #0066CC;
  27.             font-family:Verdana;Arial; 
  28.             font-size:11pt; 
  29.             margin:0pt; 
  30.             padding:0pt; }
  31.  
  32.             .headTable {
  33.             font-family:Verdana;
  34.             Arial;
  35.             color:#000000;
  36.             cell-padding:2pt;
  37.             background:#FFFFFF;
  38.             width:100%;
  39.             height:30px;
  40.             margin: 10px;
  41.             padding: 5px;
  42.             border: 1px solid #000000; }
  43.             
  44.             .title        {
  45.             font-size:14pt;
  46.             font-weight: normal;
  47.             font-family: Arial, Helvetica, sans-serif;
  48.             text-decoration: underline;
  49.             }
  50.             .date        { font-size:9pt; }
  51.             div.content {
  52.             font-family:Verdana, Arial;
  53.             font-size:10pt;
  54.             margin:10pt;
  55.             padding:5pt;
  56.             border: 1px solid #000000;
  57.             background-color: #FFFFFF; }
  58.             
  59.             td.title a:link      { color:#0000CC;text-decoration:none;font-weight:normal; }
  60.             td.title a:visited   { color:#0000CC;text-decoration:none; }
  61.             td.title a:hover         { color:#0000FF;text-decoration:underline;font-weight:normal; }
  62.             a:link      { color:#0000CC;text-decoration:none;font-weight:normal; }
  63.             a:visited   {
  64.             color:#0000CC;
  65.             text-decoration:none;
  66.             }
  67.             a:hover        { color:#0000FF;text-decoration:underline;font-weight:normal; }
  68.             div.channeltitle { font-weight: bold; font-size: 130%; text-align: center; margin: 10px 0; }
  69.             ]]></style>
  70.               </head>
  71.               <body>
  72.             <xsl:for-each select="//channel">
  73.             <a href='{current()/link}'><div class='channeltitle'><xsl:value-of select='current()/title' /></div></a>
  74.             <xsl:for-each select='current()//item'>
  75.             <div class='content'><span class="title"><xsl:value-of disable-output-escaping='yes' select='current()/title' /></span><br/><b><xsl:value-of select='current()/pubDate' /></b><br/> <xsl:choose> <xsl:when test='current()/xhtml:body'> <xsl:copy-of select='current()/xhtml:body'/> 
  76.             </xsl:when> <xsl:when test='current()/content:encoded'> <xsl:value-of  disable-output-escaping='yes' select='current()/content:encoded'/> 
  77.             </xsl:when> <xsl:otherwise> <xsl:value-of disable-output-escaping='yes' select='current()/description'/> 
  78.             </xsl:otherwise> </xsl:choose> <br/>
  79.             <br/>
  80.             <a href='{current()/link}'>Read on...</a> <xsl:if test='current()/comments'> <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> 
  81.             <xsl:text disable-output-escaping='yes'><a href='</xsl:text><xsl:value-of  disable-output-escaping='yes' select='current()/comments'/><xsl:text disable-output-escaping='yes'>'></xsl:text> 
  82.             <xsl:value-of select='current()/slash:comments'/> Comments... <xsl:text disable-output-escaping='yes'></a></xsl:text>    
  83.               </xsl:if> 
  84.             </div>
  85.             <p><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text></p>
  86.             </xsl:for-each>
  87.             </xsl:for-each>
  88.             </body></html>
  89.           </xsl:template>
  90.  
  91.  
  92.           <!-- channel newspaper -->
  93.           <xsl:template match="newspaper[@type='channel']">
  94.             <html>
  95.               <head>
  96.             <title><xsl:value-of select='//channel/title'/></title>
  97.             <base href="{//channel/link}" />
  98.             <style><![CDATA[
  99.             body    { 
  100.             scrollbar-face-color: #FFFFFF;
  101.             scrollbar-highlight-color: #0066CC;
  102.             scrollbar-3dlight-color: #0066CC;
  103.             scrollbar-darkshadow-color: #0066CC;
  104.             scrollbar-shadow-color: #0066CC;
  105.             scrollbar-arrow-color: #0066CC;
  106.             scrollbar-track-color: #0066CC;
  107.             background: #0066CC;
  108.             font-family:Verdana;Arial; 
  109.             font-size:11pt; 
  110.             margin:0pt; 
  111.             padding:0pt; }
  112.  
  113.             .headTable {
  114.             font-family:Verdana;
  115.             Arial;
  116.             color:#000000;
  117.             cell-padding:2pt;
  118.             background:#FFFFFF;
  119.             width:100%;
  120.             height:30px;
  121.             margin: 10px;
  122.             padding: 5px;
  123.             border: 1px solid #000000; }
  124.             
  125.             .title        {
  126.             font-size:14pt;
  127.             font-weight: normal;
  128.             font-family: Arial, Helvetica, sans-serif;
  129.             text-decoration: underline;
  130.             }
  131.             .date        { font-size:9pt; }
  132.             div.content {
  133.             font-family:Verdana, Arial;
  134.             font-size:10pt;
  135.             margin:10pt;
  136.             padding:5pt;
  137.             border: 1px solid #000000;
  138.             background-color: #FFFFFF; }
  139.             
  140.             td.title a:link      { color:#0000CC;text-decoration:none;font-weight:normal; }
  141.             td.title a:visited   { color:#0000CC;text-decoration:none; }
  142.             td.title a:hover         { color:#0000FF;text-decoration:underline;font-weight:normal; }
  143.             a:link      { color:#0000CC;text-decoration:none;font-weight:normal; }
  144.             a:visited   {
  145.             color:#0000CC;
  146.             text-decoration:none;
  147.             }
  148.             a:hover        { color:#0000FF;text-decoration:underline;font-weight:normal; }
  149.             div.channeltitle { font-weight: bold; font-size: 130%; text-align: center; margin: 10px 0; }
  150.             ]]></style>
  151.               </head>
  152.               <body>
  153.             <a href='{//channel/link}'><div class='channeltitle'><xsl:value-of select='//channel/title' /></div></a>
  154.             <xsl:for-each select='//item'>
  155.             <div class='content'><span class="title"><xsl:value-of disable-output-escaping='yes' select='current()/title' /></span><br/><b><xsl:value-of select='current()/pubDate' /></b><br/> <xsl:choose> <xsl:when test='current()/xhtml:body'> <xsl:copy-of select='current()/xhtml:body'/> 
  156.             </xsl:when> <xsl:when test='current()/content:encoded'> <xsl:value-of  disable-output-escaping='yes' select='current()/content:encoded'/> 
  157.             </xsl:when> <xsl:otherwise> <xsl:value-of disable-output-escaping='yes' select='current()/description'/> 
  158.             </xsl:otherwise> </xsl:choose> <br/>
  159.             <br/>
  160.             <a href='{current()/link}'>Read on...</a> <xsl:if test='current()/comments'> <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> 
  161.             <xsl:text disable-output-escaping='yes'><a href='</xsl:text><xsl:value-of  disable-output-escaping='yes' select='current()/comments'/><xsl:text disable-output-escaping='yes'>'></xsl:text> 
  162.             <xsl:value-of select='current()/slash:comments'/> Comments... <xsl:text disable-output-escaping='yes'></a></xsl:text>    
  163.               </xsl:if> 
  164.             </div>
  165.             <p><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text></p>
  166.             </xsl:for-each>
  167.             </body></html>
  168.           </xsl:template>
  169.  
  170.           <!-- single news item -->
  171.           <xsl:template match="newspaper[@type='newsitem']">
  172.             <html>
  173.               <head>
  174.             <title><xsl:value-of select='//item/title'/></title>
  175.             <base href="{//item/link}" />
  176.             <style><![CDATA[
  177.             body    { 
  178.             scrollbar-face-color: #FFFFFF;
  179.             scrollbar-highlight-color: #0066CC;
  180.             scrollbar-3dlight-color: #0066CC;
  181.             scrollbar-darkshadow-color: #0066CC;
  182.             scrollbar-shadow-color: #0066CC;
  183.             scrollbar-arrow-color: #0066CC;
  184.             scrollbar-track-color: #0066CC;
  185.             background: #0066CC;
  186.             font-family:Verdana;Arial; 
  187.             font-size:11pt; 
  188.             margin:0pt; 
  189.             padding:0pt; }
  190.  
  191.             .headTable {
  192.             font-family:Verdana;
  193.             Arial;
  194.             color:#000000;
  195.             cell-padding:2pt;
  196.             background:#FFFFFF;
  197.             width:100%;
  198.             height:30px;
  199.             margin: 10px;
  200.             padding: 5px;
  201.             border: 1px solid #000000; }
  202.             
  203.             .title        {
  204.             font-size:14pt;
  205.             font-weight: normal;
  206.             font-family: Arial, Helvetica, sans-serif;
  207.             text-decoration: underline;
  208.             }
  209.             .date        { font-size:9pt; }
  210.             div.content {
  211.             font-family:Verdana, Arial;
  212.             font-size:10pt;
  213.             margin:10pt;
  214.             padding:5pt;
  215.             border: 1px solid #000000;
  216.             background-color: #FFFFFF; }
  217.             
  218.             td.title a:link      { color:#0000CC;text-decoration:none;font-weight:normal; }
  219.             td.title a:visited   { color:#0000CC;text-decoration:none; }
  220.             td.title a:hover         { color:#0000FF;text-decoration:underline;font-weight:normal; }
  221.             a:link      { color:#0000CC;text-decoration:none;font-weight:normal; }
  222.             a:visited   {
  223.             color:#0000CC;
  224.             text-decoration:none;
  225.             }
  226.             a:hover        { color:#0000FF;text-decoration:underline;font-weight:normal; }
  227.             ]]></style>
  228.               </head>
  229.               <body>
  230.             <div class='content'><span class="title"><xsl:value-of disable-output-escaping='yes' select='//item/title' /></span><br/><b><xsl:value-of select='//item/pubDate' /></b><br/> <xsl:choose> <xsl:when test='//item/xhtml:body'> <xsl:copy-of select='//item/xhtml:body'/> 
  231.             </xsl:when> <xsl:when test='//item/content:encoded'> <xsl:value-of  disable-output-escaping='yes' select='//item/content:encoded'/> 
  232.             </xsl:when> <xsl:otherwise> <xsl:value-of disable-output-escaping='yes' select='//item/description'/> 
  233.             </xsl:otherwise> </xsl:choose> <br/>
  234.             <br/>
  235.             <a href='{//item/link}'>Read on...</a> <xsl:if test='//item/comments'> <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> 
  236.             <xsl:text disable-output-escaping='yes'><a href='</xsl:text><xsl:value-of  disable-output-escaping='yes' select='//item/comments'/><xsl:text disable-output-escaping='yes'>'></xsl:text> 
  237.             <xsl:value-of select='//item/slash:comments'/> Comments... <xsl:text disable-output-escaping='yes'></a></xsl:text>    
  238.               </xsl:if> 
  239.             </div>
  240.             <p><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text></p>
  241.             </body></html>
  242.           </xsl:template>
  243.         </xsl:stylesheet>